package co.th.bjc.md.business.impl;

import java.math.BigDecimal;

import co.th.bjc.md.business.StockService;
import co.th.bjc.md.dao.RegionDao;
import co.th.bjc.md.dao.StockDao;
import co.th.bjc.md.model.Region;

public class StockServiceImpl implements StockService{
	
	StockDao stockDao;
	RegionDao regionDao;

	public void setRegionDao(RegionDao regionDao) {
		this.regionDao = regionDao;
	}

	public void setStockDao(StockDao stockDao) {
		this.stockDao = stockDao;
	}

	@Override
	public Region findByID(BigDecimal id) throws Exception {
		return regionDao.findByID(id);
	}

	@Override
	public void getRegion(BigDecimal region_id) throws Exception {
//		RegionBean bean = new RegionBean();
//		Region region = regionDao.findByID(region_id);
//		bean.setRegion_id(region.getRegionId());
//		bean.setRegion_name_th(region.getRegionNameTH());
//		bean.setRegion_name_en(region.getRegionNameEN());
//		return bean;
	}
}
